package com.jade.zsy.controller.swagger;

import org.springframework.context.annotation.Bean;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableSwagger2
public class ApplicationSwaggerConfig {

    @Bean
    public Docket addUserDocket() {
        Docket docket = new Docket(DocumentationType.SWAGGER_2);
        ApiInfo apiInfo = new ApiInfo(
                "进销存 API", //标题
                "API Document管理", //描述
                "V1.0.0", //版本
                "http://dev.zsydian.com:9003/apidoc/pss.html", //文档地址
                "ZSY", //归属
                "",
                "");
        docket.apiInfo(apiInfo);
        return docket;
    }
}